<div class="span6 offset3 well">
	<?php 
		if($this->session->flashdata('login_errors'))
		{	?>
			<div class="alert alert-danger">
				<?= $this->session->flashdata('login_errors') ?>
			</div>
	<?php	
		}	?>
	<form id="admin_login" action="/user/process_login" method="post" class="form-horizontal">
		<fieldset>
			<legend>Login</legend>
			<div class="control-group">
				<label for="user_type" class="control-label">Login as:</label>
				<div class="controls">
					<select name="user_type" id="user_type">
						<option value="1">Student</option>
						<option value="2">Professor</option>
					</select>
				</div>
			</div>
			<div class="control-group">
				<label for="email" class="control-label">Email</label>
				<div class="controls">
					<input type="text" name="email">
				</div>
			</div>
			<div class="control-group">
				<label for="password" class="control-label">Password</label>
				<div class="controls">
					<input type="password" name="password">
				</div>
			</div>
			<div class="controls">
				<button name="login" class="btn btn-info" type="submit">Login</button>
			</div>
		</fieldset>
	</form>
	<div class="alert alert-info">
		<p class="muted">Don't have an account yet? Please register <a href="/user/register">here</a></p>
	</div>
</div>